package ontology.concepts.employmentlaw;

import ontology.concepts.general.IOutcome;
import jade.content.Concept;

public class Outcome implements IOutcome<String> 
{
	private String ID;
	private Integer daysReceived; //the days of salary received for each year of antiquity
	private Float nightWork; //percentage of total amount of hours of night work that employee received
	private Float suplementaryWork; //percentage of total amount hours of supplementary work that employee received
	
	
	public String getID() {
		return ID;
	}
	public void setID(String iD) {
		ID = iD;
	}
	public Integer getDaysReceived() {
		return daysReceived;
	}
	public void setDaysReceived(Integer daysReceived) {
		this.daysReceived = daysReceived;
	}
	public Float getNightWork() {
		return nightWork;
	}
	public void setNightWork(Float nightWork) {
		this.nightWork = nightWork;
	}
	public Float getSuplementaryWork() {
		return suplementaryWork;
	}
	public void setSuplementaryWork(Float suplementaryWork) {
		this.suplementaryWork = suplementaryWork;
	}
	
	public String toString()
	{
		return "(ID, Days Received, Night Work, Suplementary Work) - ("+ID + ", "+daysReceived+", "+nightWork+", "+suplementaryWork+")";
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Outcome other = (Outcome) obj;
		if (daysReceived == null) {
			if (other.daysReceived != null)
				return false;
		} else if (!daysReceived.equals(other.daysReceived))
			return false;
		if (nightWork == null) {
			if (other.nightWork != null)
				return false;
		} else if (!nightWork.equals(other.nightWork))
			return false;
		if (suplementaryWork == null) {
			if (other.suplementaryWork != null)
				return false;
		} else if (!suplementaryWork.equals(other.suplementaryWork))
			return false;
		return true;
	}
	
}
